package com.neidetcher.tuml.model;

import java.util.ArrayList;
import java.util.List;

public class Model
{
   private List<Object> objects = new ArrayList<Object>();
   private List<Message> messages = new ArrayList<Message>();
   
   public List<Object> getObjects()
   {
      return objects;
   }

   public void setObjects(List<Object> objects)
   {
      this.objects = objects;
   }
   
   public void addObject(Object objectIn)
   {
      this.objects.add(objectIn);
   }
   
   public String toString()
   {
      String out = new String("Model");
      out += "\nobjects: ";
      for (Object currObject: objects)
      {
         out += "\n\t" + currObject;
      }
      
      return out;
   }

   public List<Message> getMessages()
   {
      return messages;
   }

   public void setMessages(List<Message> messages)
   {
      // now this is kind of odd here but now we're going to figure out the nesting
      // involved for each method call
      
      this.messages = messages;
   }
   
}
